home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_08_12
/
8n12039a
< prev
next >
Wrap
Text File
|
1990-10-16
|
609b
|
23 lines
/* initialize device number 3 by holding its reset */
/* line (GPIO bit 7) high for half a minute */
#include "mfp_defs.h" /* MFP address definitions */
#include "mfp_macs.h" /* MFP macro definitions */
#define HOLD_TIME 30 /* seconds to hold reset line */
#define RESET_LINE 7 /* reset line is GPIO bit 7 */
reset_dev3()
{
BIT_SET(GPIO,RESET_LINE); /* set reset line */
delay(HOLD_TIME); /* and hold it, then */
BIT_CLR(GPIO,RESET_LINE); /* clear it back to zero */
}